package jxau.cn.dao.impl;

import java.io.IOException;
import java.io.Reader;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.junit.Test;

import jxau.cn.dao.ListDao;
import jxau.cn.db.DBUtil;
import jxau.xn.servlet.Page;

public class ListDaoImpl_mybatis{
    SqlSessionFactory sessionFactory;
    public ListDaoImpl_mybatis(){
    	 Reader reader;
		try {
			reader = Resources.getResourceAsReader("conf.xml");
			SqlSessionFactoryBuilder builder=new SqlSessionFactoryBuilder();
	    	sessionFactory = builder.build(reader);
		} catch (IOException e) {
			e.printStackTrace();
		}
    	 
    }
    @Test
	public void getPage() {
	      SqlSession session = sessionFactory.openSession();
	      String statement= "";
	      String i = session.selectOne("jxau.cn.model.UserMapper.AllUser");
	
	}

}
